package com.example.agrigreennewssys.controller;


import com.example.agrigreennewssys.service.TagArticleService;
import com.example.agrigreennewssys.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 光的代言人
 */
@RestController
@RequestMapping("/api/tag-articles")
public class TagArticleController {
    @Autowired
    private TagArticleService tagArticleService;
    @RequestMapping("/get-article-count-by-tag")
    public Result getArticleCountByTag() {
        return Result.success(tagArticleService.getArticleCountByTag());
    }
}
